The Chown command alters the owner of a file or directory and the group it belongs to, which can authorize a user to become the owner of the specified file or to change the group to which the file belongs.(1) Usage:usage: chown [Options] ... Owner [:
One, the use of chown and chmod commands
directive Name: chmod
Use Rights: All users
How to use: chmod [-CFVR] [--help] [--version] Mode file ...
Description: Linux/unix file access rights are divided into three levels: file owners, groups,
Today to share 2 commands are also commonly used in our usual, chmod and chown seems to spell a bit similar, but the use of the two is different. Chmod is used to set folder and file permissions, such as our VPS host files can not read and write,
Each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories.Access to a file or directory is divided into read-only, write-only, and executable three types. As an
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
In the Linux system, Chmod,chown commands can be set permissions, but they are also different, the following small section for you to introduce chmod and chown two command usage and differences introduced.Today's 2 commands to share are also
chown Change the file all people and groupsGrammar:chown [OPTION] [Owner][:[group]] FILEchown [OPTION]--reference=rfile FILEDescriptive narrative:Chown the owner of the user and/or group that changed the specified file.
assuming that only
Objective
This article mainly learn Hadoop HDFs from HDFs move to local, move from local to Hdfs,tail view last, rm delete file, expunge empty trash,chown change owner, setrep change file copy number, CHGRP change belong group,, Du, DF Disk
Change file ownershipchownFor examplesudo chown username myfile
1
myfileOwnership of the file becomes username .chown -R username /files/work
1
Add Parameters -R , work folders, and all the files and subdirectories in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.